<?php

return array(
	'searchColumns' => array(
		'fid' => array('dropDownList', Yii::app()->enum->options('finance.financeAccount')),
		'fltid' => array('dropDownList', Yii::app()->enum->options('finance.financeLogType')),
		'ftid' => array('dropDownList', Yii::app()->enum->options('finance.financeType')),
		'worker_id' => array('dropDownList', Yii::app()->enum->options('worker.worker'),
			'visible' => 'Yii::app()->adminUser->role == AdminUser::ROLE_OPERATOR',
		),
		'selectTime' => array('dropDownList', Yii::app()->enum->options('selectTime')),
	),

	'dataColumns' => array(
		'id',
		'fType.name',
		'fLogType.name',
		'account.account',
		'worker.worker_name',
		'amount',
		'create_time',
		array(
			'class' => 'ButtonColumn',
			'header' => '操作',
			'template' => '{view}',
		),
	),
	'operates' => false,
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>